package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Praise;
import cn.wolfcode.trip.base.query.CommentQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PraiseMapper {

    int deleteByPrimaryKey(Long id);

    int insertlikeTravel(Praise record);

    int insertlikeStrategyComment(Praise record);

    List<Praise> checkCopyLikeByTravel(Long id);

    List<Praise> checkCopyLikeByStrategyComment(Long id);

    List<Praise> selectLikeTravelByMe(QueryObject queryObject);

    int updateByPrimaryKey(Praise record);

    int updateMyLikeByTravel(Praise record);

    Integer selectPraiseTotalByStrategyCommentId(CommentQueryObject qo);

    Integer selectLikeTotalByUserId(@Param("userId") Long userId);
}